package hcn.protocol.brandnew.zhenliao.jiluxinxi;

import lombok.Data;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;
import java.util.List;

/**
 * Created by ChenJij on 2023/9/13.
 */
@Data
@XmlRootElement(name = "MsgBody")
public class PushDispensingInformationRequest {
    /**
     * 机构代码
     */
    private String visitOrganization;
    /**
     * 发药处方集合
     */
    private List<RecipeList> recipeLists;


    @XmlElement(name = "VisitOrganization")
    public String getVisitOrganization() {
        return visitOrganization;
    }

    public void setVisitOrganization(String visitOrganization) {
        this.visitOrganization = visitOrganization;
    }

    @XmlElementWrapper(name = "RecipeLists")
    @XmlElement(name = "RecipeList")
    public List<RecipeList> getRecipeLists() {
        return recipeLists;
    }

    public void setRecipeLists(List<RecipeList> recipeLists) {
        this.recipeLists = recipeLists;
    }


    @XmlRootElement(name = "RecipeList")
    public static class RecipeList{
        /**
         * 处方记录号
         */
        private String prescriptionRecordId;
        /**
         * 处方编号
         */
        private String recipeNumber;
        /**
         * 药房编码
         */
        private String pharmacyId;
        /**
         * 发药时间
         */
        private Date pushDispensingDateTime;
        /**
         * 发药人编码
         */
        private String operatorCode;

        @XmlElement(name = "PrescriptionRecordId")
        public String getPrescriptionRecordId() {
            return prescriptionRecordId;
        }

        public void setPrescriptionRecordId(String prescriptionRecordId) {
            this.prescriptionRecordId = prescriptionRecordId;
        }

        @XmlElement(name = "RecipeNumber")
        public String getRecipeNumber() {
            return recipeNumber;
        }

        public void setRecipeNumber(String recipeNumber) {
            this.recipeNumber = recipeNumber;
        }

        @XmlElement(name = "PharmacyId")
        public String getPharmacyId() {
            return pharmacyId;
        }

        public void setPharmacyId(String pharmacyId) {
            this.pharmacyId = pharmacyId;
        }

        @XmlElement(name = "PushDispensingDateTime")
        public Date getPushDispensingDateTime() {
            return pushDispensingDateTime;
        }

        public void setPushDispensingDateTime(Date pushDispensingDateTime) {
            this.pushDispensingDateTime = pushDispensingDateTime;
        }

        @XmlElement(name = "OperatorCode")
        public String getOperatorCode() {
            return operatorCode;
        }

        public void setOperatorCode(String operatorCode) {
            this.operatorCode = operatorCode;
        }
    }
}